package foo;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class CalculatorLoggingAspect {
	private Log LOG = LogFactory.getLog(this.getClass());
	
	@Before("execution(* ArithmeticCalculator.add(..))")
	public void logBefore() {
		LOG.info("The method add() begins");
	}
}
